<?php
session_start();
require_once("../models/Admin.php");
class RecoverPasswordController{
	var $email;
	var $password;
	function sendEmail(){
		echo "Password sent to ".$this->email.".<br />";
	}
	
	function recover(){
		$admin = new Admin;
		$admin->connect();
		$this->email = $admin->getEmail();
		$this->password = $admin->getPassword();
	}
}

	$a = new RecoverPasswordController;
	$a->recover();
	$a->sendEmail();
	
	


	
?>